package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 张永远
 * @since 2020-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_amazon_items")
public class OrderAmazonItemsDo extends Model<OrderAmazonItemsDo> {

    private static final long serialVersionUID = 1L;

    /**
     * item id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String itemId;
    /**
     * order_amazon_id
     */
    @TableField("order_amazon_id")
    private Long orderAmazonId;

    /**
     * asin
     */
    @TableField("asin")
    private String asin;

    /**
     * 平台sku
     */
    @TableField("seller_sku")
    private String sellerSku;

    /**
     * 系统SKU
     */
    @TableField("system_sku")
    private Long systemSku;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 订单商品数量
     */
    @TableField("quantity_ordered")
    private Integer quantityOrdered;

    /**
     * 已出货商品数量
     */
    @TableField("quantity_shipped")
    private Integer quantityShipped;

    /**
     * 商品价格
     */
    @TableField("item_price")
    private String itemPrice;

    /**
     * 代收款金额
     */
    @TableField("COD_fee")
    private String codFee;

    /**
     * 是否是赠品
     */
    @TableField("is_gift")
    private Integer isGift;

    /**
     * 配送指定开始日期
     */
    @TableField("scheduled_delivery_start_date")
    private Date scheduledDeliveryStartDate;

    /**
     * 配送指定结束日期
     */
    @TableField("scheduled_delivery_end_date")
    private Date scheduledDeliveryEndDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
